<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 1. 没有很明显的闭包 只有词法作用域的覆盖罢了
        function foo() {
            var something = 'cool'
            var another = [1, 2, 3]
            function doSomething() {
                console.log(something);
            }
            function doAnother() {
                console.log(another.join('!'))
            }
        }
    </script>
</body>

</html>